<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                template="./default_template.xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:p="http://primefaces.org/ui">

   

        <ui:define name="content">
        <h:form>
             <h2><h:outputText value="Virement par auto-completion"/></h2>
            <h:panelGrid columns="2"  >
                <h:outputLabel value="Compte à débiter :" for="proprietaire" />  
                <p:autoComplete id="proprietaire" value="#{compteMBean.proprietaire}" 
                                completeMethod="#{compteMBean.complete}">
                    <p:ajax update="proprietaire"  event="blur"    
                                        listener="#{compteMBean.handlerComplete}" /> 
                </p:autoComplete>
            
                
                
                <h:outputLabel value="Compte à créditer :" for="proprietaire2" />  
                <p:autoComplete id="proprietaire2" value="#{compteMBean.proprietaire2}"   
                                completeMethod="#{compteMBean.complete2}"/> 
                
                 
                
            
            <h:inputText id="solde" value="#{compteMBean.solde}" /><br />
            <p:slider for="solde" minValue="100" maxValue="10000"/>
            <h:commandButton id="back" value="Back" action="./index.xhtml"/>  
            <h:commandButton id="virement" value="Virement" action="#{compteMBean.virementAC}"  />
           
            </h:panelGrid>
             
        </h:form>
    </ui:define>


</ui:composition>
